package com.ruoyi.framework.config;

import dev.langchain4j.model.openai.OpenAiChatModel;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

@Configuration
public class DeepSeekConfig {
//
//    private String baseUrl = "https://api.deepseek.com/v1";
//
//    private String apiKey = "sk-bf22cda29c9a4a389b1fcb2b1a1f4ee7";
//
//    private String modelName = "deepseek-chat";
//
//    private Integer timeout = 60;
//
//    @Bean
//    public ChatLanguageModel deepSeekChatModel() {
//        return OpenAiChatModel.builder()
//                .baseUrl(baseUrl)  // 关键：设置DeepSeek的API端点
//                .apiKey(apiKey)
//                .modelName(modelName)
//                .timeout(Duration.ofSeconds(timeout))
//                .build();
//    }
}